package com.qf.listener;

import com.qf.pojo.Hz;
import org.springframework.context.event.EventListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/8/29 17:33
 */
@Component
public class Zf {
    @EventListener
    @Async
    public void onEvent(Hz hz){
        System.out.println("政府部门收到了"+hz.getAddress()+"发生了特大火灾啊,然后就当做没听见"+Thread.currentThread().getName());
    }
}
